{extend name="public/base" /}
{block name="title"}VIP管理 - 后台首页{/block}
{block name="header_title"}欢迎！{/block}
{block name="main"}
<main class="lyear-layout-content">

    <div class="container-fluid">

        <div class="row">
            <div class="col-sm-6 col-lg-3">
                <div class="card bg-danger">
                    <div class="card-body clearfix">
                        <div class="pull-right">
                            <p onclick="location.href='reg.html'" class="h3 text-white m-b-0 cursor-pointer">会员开户</p>
                        </div>
                        <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6 col-lg-3">
                <div class="card bg-primary">
                    <div class="card-body clearfix">
                        <div class="pull-right">
                            <p onclick="location.href='cost.html'" class="h3 text-white m-b-0 cursor-pointer">会员充值</p>
                        </div>
                        <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-currency-cny fa-1-5x"></i></span> </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6 col-lg-3">
                <div class="card bg-purple">
                    <div class="card-body clearfix">
                        <div class="pull-right">
                            <p onclick="location.href='show.html'" class="h3 text-white m-b-0 cursor-pointer">消费记录</p>
                        </div>
                        <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-comment-outline fa-1-5x"></i></span> </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6 col-lg-3">
                <div class="card bg-success">
                    <div class="card-body clearfix">
                        <div class="pull-right">
                            <p onclick="location.href='users.html'" class="h3 text-white m-b-0 cursor-pointer">用户列表</p>
                        </div>
                        <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-xs-12">
                <div class="card">
                    <div class="card-header">
                        <h4>E管家 - 会员积分管理系统</h4>
                    </div>
                    <div class="card-body">
                        <p>E管家，帮您轻松做生意。</p>
                        <p>开发者邮箱：<a href="javascript:void(0)">huaer222@163.com</a>，业务合作，欢迎洽谈！</p>
                        <p>温馨提示：<a href="javascript:void(0)">为了您的数据安全，请及时做好数据备份！！</a></p>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">

            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <h4>最近记录（仅展示最近的10条记录）</h4>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>用户</th>
                                    <th>操作说明</th>
                                    <th>操作金额</th>
                                    <th>操作时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                {foreach $log_list as $key=>$list}

                                <tr>
                                    <td>{$key+1}</td>
                                    <td>{$list.user?$list.user.name . '('.substr_replace($list.user.mobile, '****', 3, 4).')':'未知'}</td>
                                    <td>{$list.des}</td>
                                    <td>{$list.cost == 0?'--':$list.cost}</td>
                                    <td>{$list.time|date='Y-m-d H:i:s'}</td>
                                </tr>
                                {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>

</main>
{/block}
{block name="js"}

{/block}